﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using RouterControl.Web;
using RouterControl.Db;

internal static class DeviceDomDbConnectorExtensionMethods
{

    public static ReleaseInfo ToWeb(this DeviceDomDbConnector.ReleaseInfo ei)
    {
        return new ReleaseInfo()
        {
            ReleaseId = ei.ReleaseId,
            VersionStr = ei.VersionStr,
            ReleaseUrl = ei.ReleaseUrl,
            MsiDownloadUrl = ei.MsiDownloadUrl
        };
    }

}
